﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using APILocawebGateway.REDECARD;
namespace TestProject.REDECARD
{
    [TestClass]
    public class UtilidadesREDECARDTeste
    {

        [TestMethod]
        public void TesteFormataMoedaParaFormREDECARD()
        {
            Assert.AreEqual("0000000100", UtilidadesREDECARD.FormataMoedaParaFormREDECARD(Convert.ToDecimal("1,0000")));
            Assert.AreEqual("0000000100", UtilidadesREDECARD.FormataMoedaParaFormREDECARD(Convert.ToDecimal("1,00")));
            Assert.AreEqual("0000001000", UtilidadesREDECARD.FormataMoedaParaFormREDECARD(Convert.ToDecimal("10,00")));


        }
        [TestMethod]
        public void TesteFormataMoedaParaConfirmacaoREDECARD()
        {
            Assert.AreEqual("0000000000001.00", UtilidadesREDECARD.FormataMoedaParaConfirmacaoREDECARD(Convert.ToDecimal("1,00")));
            Assert.AreEqual("0000000000001.00", UtilidadesREDECARD.FormataMoedaParaConfirmacaoREDECARD(Convert.ToDecimal("1,0000")));
            Assert.AreEqual("0000000000010.00", UtilidadesREDECARD.FormataMoedaParaConfirmacaoREDECARD(Convert.ToDecimal("10,0000")));

        }
    }
}
